package com.jun.admin.core.model.excel.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author yuejun.li
 * @date 2024/10/9 13:55:48
 * 字符串长度校验
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelStrValid {

    //自己定义长度
    int length() default 0;

    String message() default "文字填写超出长度要求";
}
